package com.competitions.easydubbing.service;

import com.competitions.easydubbing.entity.Result;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Mapler
 * @since 2021-5-20
 */
public interface CommunityService {
    ResponseEntity<Result> publishVideo(
            int uid,
            String title,
            String desc,
            String channel,
            MultipartFile cover,
            MultipartFile video
    );

    ResponseEntity<Result> publishDirectly(
            int uid,
            String title,
            String desc,
            String channel,
            String videoPath,
            MultipartFile cover
    );

    ResponseEntity<Result> deleteVideo(int vid);

    ResponseEntity<Result> changeNum(int vid,String field,int type,int uid);

    ResponseEntity<Result> sendComment(int vid,String comment,int uid);

    ResponseEntity<Result> commentList(int vid);

    ResponseEntity<Result> findIndexList(int uid);

    ResponseEntity<Result> findHistoryList(int uid);
}
